<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class hQuery_Element</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?70c1d062672daa3f906b72e4f5d03d4bc5c4174d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">Overview</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-hQuery.html">hQuery</a></li>
				<li class="active"><a href="class-hQuery_Element.html">hQuery_Element</a></li>
				<li><a href="class-hQuery_HTML_Parser.html">hQuery_HTML_Parser</a></li>
				<li><a href="class-hQuery_Node.html">hQuery_Node</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class hQuery_Element</h1>


	<div class="description">
	<p>Represents an HTML Element ( eg div, input etc ) or a collection of elements ( eq jQuery([div, span, ...]) )</p>
	</div>

	<dl class="tree well">
		<dd style="padding-left:0px">
			<a href="class-hQuery_Node.html"><span>hQuery_Node</span></a>
			
			 implements 
<span>Iterator</span>, 
			
<span>Countable</span>
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by">
<b><span>hQuery_Element</span></b>			
			
			
		</dd>
	</dl>








	<div class="alert alert-info">
		
		
		
		

				<b>License:</b>
				<a href="MIT">MIT</a><br>
				<b>Author:</b>
				Dumitru Uzun (DUzun.ME)<br>
			<b>Located at</b> <a href="source-class-hQuery_Element.html#2945-3200" title="Go to source code"></a>
		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="toArray" id="_toArray">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_toArray">#</a>
			<code><a href="source-class-hQuery_Element.html#2954-2971" title="Go to source code">toArray</a>( <span> <var>$cch</var> = <span class="php-keyword1">true</span></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="__get" id="___get">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___get">#</a>
			<code><a href="source-class-hQuery_Element.html#2974-3011" title="Go to source code">__get</a>( <span> <var>$name</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				






					<h4>Overrides</h4>
					<div class="list"><code><a href="class-hQuery_Node.html#___get">hQuery_Node::__get</a></code></div>

			</div>
			</div></td>
		</tr>
		<tr data-order="offsetSet" id="_offsetSet">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_offsetSet">#</a>
			<code><a href="source-class-hQuery_Element.html#3015-3026" title="Go to source code">offsetSet</a>( <span> <var>$offset</var></span>, <span> <var>$value</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="offsetGet" id="_offsetGet">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_offsetGet">#</a>
			<code><a href="source-class-hQuery_Element.html#3028-3034" title="Go to source code">offsetGet</a>( <span> <var>$offset</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="offsetExists" id="_offsetExists">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_offsetExists">#</a>
			<code><a href="source-class-hQuery_Element.html#3036-3041" title="Go to source code">offsetExists</a>( <span> <var>$offset</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="offsetUnset" id="_offsetUnset">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_offsetUnset">#</a>
			<code><a href="source-class-hQuery_Element.html#3043-3054" title="Go to source code">offsetUnset</a>( <span> <var>$offset</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="val" id="_val">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_val">#</a>
			<code><a href="source-class-hQuery_Element.html#3057-3075" title="Go to source code">val</a>( )</code>

			<div class="description short">
				<p>Get value of an :input element.</p>
			</div>

			<div class="description detailed hidden">
				<p>Get value of an :input element.</p>







			</div>
			</div></td>
		</tr>
		<tr data-order="current" id="_current">

			<td class="attributes"><code>
				 public 
				<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_current">#</a>
			<code><a href="source-class-hQuery_Element.html#3077-3088" title="Go to source code">current</a>( )</code>

			<div class="description short">
				<p>Override current() for iterations.</p>
			</div>

			<div class="description detailed hidden">
				<p>Override current() for iterations.</p>



					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
					</div>



					<h4>Overrides</h4>
					<div class="list"><code><a href="class-hQuery_Node.html#_current">hQuery_Node::current</a></code></div>

			</div>
			</div></td>
		</tr>
		<tr data-order="get" id="_get">

			<td class="attributes"><code>
				 public 
				<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_get">#</a>
			<code><a href="source-class-hQuery_Element.html#3090-3112" title="Go to source code">get</a>( <span>integer <var>$idx</var></span> )</code>

			<div class="description short">
				<p>Get the node at $idx position in the set, using cache</p>
			</div>

			<div class="description detailed hidden">
				<p>Get the node at $idx position in the set, using cache</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$idx</var></dt>
						<dd><ul>
<li>index of an element, starts with 0.</li>
</ul></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="eq" id="_eq">

			<td class="attributes"><code>
				 public 
				<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_eq">#</a>
			<code><a href="source-class-hQuery_Element.html#3114-3127" title="Go to source code">eq</a>( <span>integer <var>$idx</var></span> )</code>

			<div class="description short">
				<p>Get the node at $idx position in the set, no cache, each call creates new instance.</p>
			</div>

			<div class="description detailed hidden">
				<p>Get the node at $idx position in the set, no cache, each call creates new instance.</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$idx</var></dt>
						<dd><ul>
<li>index of an element, starts with 0.</li>
</ul></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="slice" id="_slice">

			<td class="attributes"><code>
				 public 
				<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_slice">#</a>
			<code><a href="source-class-hQuery_Element.html#3129-3158" title="Go to source code">slice</a>( <span>integer <var>$idx</var></span>, <span>integer <var>$len</var> = <span class="php-keyword1">NULL</span></span> )</code>

			<div class="description short">
				<p>Get a slice of current node collection.</p>
			</div>

			<div class="description detailed hidden">
				<p>Get a slice of current node collection.</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$idx</var></dt>
						<dd><ul>
<li>start index of an element, starts with 0.</li>
</ul></dd>
						<dt><var>$len</var></dt>
						<dd><ul>
<li>OPTIONAL number of element to slice. Defaults to all starting at $idx</li>
</ul></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="parent" id="_parent">

			<td class="attributes"><code>
				 public 
				<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_parent">#</a>
			<code><a href="source-class-hQuery_Element.html#3160-3168" title="Go to source code">parent</a>( )</code>

			<div class="description short">
				<p>Get parent nodes for this collection of nodes.</p>
			</div>

			<div class="description detailed hidden">
				<p>Get parent nodes for this collection of nodes.</p>



					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-hQuery_Element.html">hQuery_Element</a></code><br>parent
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="children" id="_children">

			<td class="attributes"><code>
				 public 
				<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_children">#</a>
			<code><a href="source-class-hQuery_Element.html#3170-3178" title="Go to source code">children</a>( )</code>

			<div class="description short">
				<p>Get child nodes for this collection of nodes.</p>
			</div>

			<div class="description detailed hidden">
				<p>Get child nodes for this collection of nodes.</p>



					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-hQuery_Element.html">hQuery_Element</a></code><br>children
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="previousElementSibling" id="_previousElementSibling">

			<td class="attributes"><code>
				 public 
				<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_previousElementSibling">#</a>
			<code><a href="source-class-hQuery_Element.html#3180-3188" title="Go to source code">previousElementSibling</a>( )</code>

			<div class="description short">
				<p>Get previous element siblings for each of the elements of this collection</p>
			</div>

			<div class="description detailed hidden">
				<p>Get previous element siblings for each of the elements of this collection</p>



					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-hQuery_Element.html">hQuery_Element</a></code><br>previousElementSibling
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="nextElementSibling" id="_nextElementSibling">

			<td class="attributes"><code>
				 public 
				<code><a href="class-hQuery_Element.html">hQuery_Element</a></code>
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_nextElementSibling">#</a>
			<code><a href="source-class-hQuery_Element.html#3190-3198" title="Go to source code">nextElementSibling</a>( )</code>

			<div class="description short">
				<p>Get next element siblings for each of the elements of this collection</p>
			</div>

			<div class="description detailed hidden">
				<p>Get next element siblings for each of the elements of this collection</p>



					<h4>Returns</h4>
					<div class="list">
						<code><a href="class-hQuery_Element.html">hQuery_Element</a></code><br>nextElementSibling
					</div>




			</div>
			</div></td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
	        <div class="panel-heading"><h3>Methods inherited from <a href="class-hQuery_Node.html#methods">hQuery_Node</a></h3></div>
			<p class="elementList">
				<code><a href="class-hQuery_Node.html#_CSSArr2Str">CSSArr2Str()</a></code>, 
				<code><a href="class-hQuery_Node.html#___construct">__construct()</a></code>, 
				<code><a href="class-hQuery_Node.html#___destruct">__destruct()</a></code>, 
				<code><a href="class-hQuery_Node.html#___isset">__isset()</a></code>, 
				<code><a href="class-hQuery_Node.html#___set">__set()</a></code>, 
				<code><a href="class-hQuery_Node.html#___toString">__toString()</a></code>, 
				<code><a href="class-hQuery_Node.html#___unset">__unset()</a></code>, 
				<code><a href="class-hQuery_Node.html#__all">_all()</a></code>, 
				<code><a href="class-hQuery_Node.html#__children">_children()</a></code>, 
				<code><a href="class-hQuery_Node.html#__ctx_ids">_ctx_ids()</a></code>, 
				<code><a href="class-hQuery_Node.html#__doc_ids">_doc_ids()</a></code>, 
				<code><a href="class-hQuery_Node.html#__filter">_filter()</a></code>, 
				<code><a href="class-hQuery_Node.html#__has">_has()</a></code>, 
				<code><a href="class-hQuery_Node.html#__my_ids">_my_ids()</a></code>, 
				<code><a href="class-hQuery_Node.html#__next">_next()</a></code>, 
				<code><a href="class-hQuery_Node.html#__parent">_parent()</a></code>, 
				<code><a href="class-hQuery_Node.html#__prev">_prev()</a></code>, 
				<code><a href="class-hQuery_Node.html#__sub_ids">_sub_ids()</a></code>, 
				<code><a href="class-hQuery_Node.html#_array_select">array_select()</a></code>, 
				<code><a href="class-hQuery_Node.html#_attr">attr()</a></code>, 
				<code><a href="class-hQuery_Node.html#_convert_encoding">convert_encoding()</a></code>, 
				<code><a href="class-hQuery_Node.html#_count">count()</a></code>, 
				<code><a href="class-hQuery_Node.html#_doc">doc()</a></code>, 
				<code><a href="class-hQuery_Node.html#_exclude">exclude()</a></code>, 
				<code><a href="class-hQuery_Node.html#_find">find()</a></code>, 
				<code><a href="class-hQuery_Node.html#_html">html()</a></code>, 
				<code><a href="class-hQuery_Node.html#_html_attr2str">html_attr2str()</a></code>, 
				<code><a href="class-hQuery_Node.html#_html_findTagClose">html_findTagClose()</a></code>, 
				<code><a href="class-hQuery_Node.html#_html_parseAttrStr">html_parseAttrStr()</a></code>, 
				<code><a href="class-hQuery_Node.html#_isDoc">isDoc()</a></code>, 
				<code><a href="class-hQuery_Node.html#_isEmpty">isEmpty()</a></code>, 
				<code><a href="class-hQuery_Node.html#_is_empty">is_empty()</a></code>, 
				<code><a href="class-hQuery_Node.html#_key">key()</a></code>, 
				<code><a href="class-hQuery_Node.html#_next">next()</a></code>, 
				<code><a href="class-hQuery_Node.html#_nodeName">nodeName()</a></code>, 
				<code><a href="class-hQuery_Node.html#_outerHtml">outerHtml()</a></code>, 
				<code><a href="class-hQuery_Node.html#_parseCSStr">parseCSStr()</a></code>, 
				<code><a href="class-hQuery_Node.html#_pos">pos()</a></code>, 
				<code><a href="class-hQuery_Node.html#_prev">prev()</a></code>, 
				<code><a href="class-hQuery_Node.html#_rewind">rewind()</a></code>, 
				<code><a href="class-hQuery_Node.html#_str_range">str_range()</a></code>, 
				<code><a href="class-hQuery_Node.html#_text">text()</a></code>, 
				<code><a href="class-hQuery_Node.html#_valid">valid()</a></code>
			</p>
		</div>







		<div class="panel panel-default">
            <div class="panel-heading"><h2>Constants summary</h2></div>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Constants inherited from <a href="class-hQuery_Node.html#constants">hQuery_Node</a></h3></div>
			<p class="elementList">
				<code><a href="class-hQuery_Node.html#VERSION"><b>VERSION</b></a></code>
			</p>
		</div>



		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
			<table class="summary table table-bordered table-striped properties" id="properties">
		<tr data-order="_ich" id="$_ich">
			<td class="attributes"><code>
				protected  
				
			</code></td>

			<td class="name">
					<a href="source-class-hQuery_Element.html#2952" title="Go to source code"><var>$_ich</var></a>

				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$_ich" class="anchor">#</a>
					<code><span class="php-keyword1">NULL</span></code>
				</div>
			</td>
		</tr>
			</table>
		</div>

		<div class="panel panel-default">
            <div class="panel-heading"><h3>Properties inherited from <a href="class-hQuery_Node.html#properties">hQuery_Node</a></h3></div>
			<p class="elementList">
				<code><a href="class-hQuery_Node.html#$_ar_"><var>$_ar_</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$_fl_"><var>$_fl_</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$_mi_"><var>$_mi_</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$_nl_"><var>$_nl_</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$_prop"><var>$_prop</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$_tr_"><var>$_tr_</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$doc"><var>$doc</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$exc"><var>$exc</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$ids"><var>$ids</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$last_http_result"><var>$last_http_result</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$selected_doc"><var>$selected_doc</var></a></code>, 
				<code><a href="class-hQuery_Node.html#$tag_map"><var>$tag_map</var></a></code>
			</p>
		</div>





</div>
	</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
